<%@ page contentType="text/html; charset=UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@taglib prefix="h" uri="/syzg-html"%>
<!DOCTYPE html>
<html>
<body>
<div class="modal fade bs-example-modal-lg" id="viewModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
  <div class="modal-dialog modal-lg" role="document">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
        <h4 class="modal-title" id="myModalLabel">查看新闻信息</h4>
      </div>
      <div class="modal-body" id="modalCore">
        <table id="baseInfo" width="100%" class="table table-bordered" border="0" cellpadding="0" cellspacing="0">
		  <!-- generate code start -->
		  <tr>
            <td class="tdBg" width="100">新闻标题</td>
            <td colspan="3">${newsinfo.title}</td>
          </tr>
		  
		  <tr>
            <td class="tdBg" width="100">新闻设置</td>
            <td colspan="3">
              <label class="checkbox-inline">
               	<input type="checkbox" id="isTop" name="isTop" value="${newsinfo.isTop }" <c:if test="${newsinfo.isTop==1 }">checked</c:if> disabled onclick="this.value=this.checked?1:0"> 主题置顶
              </label>
              <label class="radio-inline">
               	<input type="checkbox" id="isCarousel" name="isCarousel" value="${newsinfo.isCarousel }" <c:if test="${newsinfo.isCarousel==1 }">checked</c:if> disabled onclick="this.value=this.checked?1:0"> 首页轮播
              </label>
              <label class="radio-inline">
               	<input type="checkbox" id="isStriking" name="isStriking" value="${newsinfo.isStriking }" <c:if test="${newsinfo.isStriking==1 }">checked</c:if> disabled onclick="this.value=this.checked?1:0"> 文字突出
              </label>
            </td>
          </tr>
          
          <tr>
            <td class="tdBg" width="100">编辑</td>
            <td>${newsinfo.editor}</td>
            <td class="tdBg" width="100">所属栏目</td>
            <td width="350">${newsinfo.newsColumns.name}</td>
          </tr>
          
          <tr>
            <td class="tdBg" width="100">新闻类型</td>
            <td>
              <c:if test="${newsinfo.type=='pic'}">图片新闻</c:if>
              <c:if test="${newsinfo.type=='word'}">文字新闻</c:if>
            </td>
            <td class="tdBg" width="100">关键字</td>
            <td width="350">${newsinfo.keyword}</td>
          </tr>
          
          <tr>
            <td class="tdBg" width="100">创建时间</td>
            <td><fmt:formatDate value="${newsinfo.createTime}" pattern="yyyy-MM-dd HH:mm"/></td>
            <td class="tdBg" width="100">发布时间</td>
		    <td><fmt:formatDate value="${newsinfo.publishTime}" pattern="yyyy-MM-dd HH:mm:ss"/></td>
          </tr>
          
          <tr>
            <td class="tdBg" width="100">新闻内容</td>
            <td colspan="3">
            	<div style="height:200px;overflow:auto;">
            		${newsinfo.content}
            	</div>
            </td>
          </tr>

		  <!-- generate code end -->
		</table>
      </div>
      <div class="modal-footer">
      </div>
    </div>
  </div>
</div>
</body>
</html>
